import request from '@/utils/request'


// 工行流水查询
export function walletQuery(params) {
  return request({
    url: '/dinner/ICBC/wallet/query',
    method: 'post',
    params
  })
}

// 工行B2C账单表分页查询
export function b2cBillPageByQo(params) {
  return request({
    url: '/dinner/icbc/b2/cbill/pageByQo',
    method: 'post',
    params
  })
}

// 工行B2C结算账单表分页查询settlement
export function b2cSettlementPageByQo(params) {
  return request({
    url: '/dinner/icbc/b2/c/js/bill/pageByQo',
    method: 'post',
    params,
    timeout: 60000
  })
}

// 工行贷款提交数据
export function icbcFinanceSave(data) {
  return request({
    url: '/dinner/finance/save',
    method: 'post',
    data
  })
}

// 工行贷款获取验证码
export function icbcFinanceSendCode(params) {
  return request({
    url: '/dinner/finance/sendCode',
    method: 'post',
    params
  })
}

// 工行贷款获取验证码
export function icbcFinanceCheckCode(params) {
  return request({
    url: '/dinner/finance/checkCode',
    method: 'post',
    params
  })
}

// 工行贷款绑定用户
export function icbcFinanceBind(params) {
  return request({
    url: '/dinner/finance/bind',
    method: 'post',
    params
  })
}

